package com.github.authcloud.common;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author : zhaoxuan
 * @version : 1.0
 * @date : 2021/8/20 0:02
 * @description : MappingAuthInfo
 */
public class RequiresRolePermissionMapping implements Serializable {
    private static final long serialVersionUID = 4365673525546581594L;

    private Set<String> methods;
    private Set<String> urls = new HashSet<>();
    private Set<String> roles = new HashSet<>();
    private Logical rolesLogical;
    private Set<String> permissions = new HashSet<>();
    private Logical permissionsLogical;

    public Set<String> getMethods() {
        return methods;
    }

    public void setMethods(Set<String> methods) {
        this.methods = methods;
    }

    public Set<String> getUrls() {
        return urls;
    }

    public void setUrls(Set<String> urls) {
        this.urls = urls;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public Logical getRolesLogical() {
        return rolesLogical;
    }

    public void setRolesLogical(Logical rolesLogical) {
        this.rolesLogical = rolesLogical;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }

    public Logical getPermissionsLogical() {
        return permissionsLogical;
    }

    public void setPermissionsLogical(Logical permissionsLogical) {
        this.permissionsLogical = permissionsLogical;
    }
}
